<script>
import { handleFirstRoute } from '@/utils'

export default {
  computed: {
    menuList() {
      return this.$store.state.app.menuList
    }
  },
  created() {
    let name = handleFirstRoute(this.menuList)
    this.$router.replace({ name })

    // const { params, query } = this.$route
    // const { path } = params
    // this.$router.replace({
    //   path: '/' + path,
    //   query
    // })
  },
  render(h) {
    return h()
  }
}
</script>
